package pref.junx.flybird.activity.fri_msg;

import android.util.Log;

import pref.junx.flybird.entity.FriendShip;

/**
 * Created by 半生瓜 on 2017/8/7.
 */

public class Fri_Info_Presenter extends Fri_Info_Conteact.Presenter {
    @Override
    protected void doreg(String account, String name, String password) {

    }

    @Override
    public void delete(FriendShip id) {
        rxManager.add(
                modle.deleteEvent(id)
                        .subscribe(result -> {
                                 if(result.getData()){
                                  view.susses();
                                    }else {
                                     view.fail();
                                 }

                                },
                                e -> {
                                    Log.i("test2", e.getMessage());
                                }));
    }
}
